import requests from "@/utils/sphRequest";

// 购物车的接口函数
export const reqCartList = () => {
  return requests.get("/cart/cartList");
};
// 点击加一和点击减一的函数
export const reqAddcart = ({ skuId, skuNum }) => {
  return requests.post(`/cart/addToCart/${skuId}/${skuNum}`);
};
// 点击单个切换选中状态
export const reqchangeChecked = ({ skuId, isChecked }) => {
  return requests.get(`/cart/checkCart/${skuId}/${isChecked}`);
};
